<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>浮动布局</title>
</head>
<style>
    .fu{
        width: 500px;
        background-color: #ff0;
        overflow: hidden;
    }
    .fu>div{
        width: 100px;
        height: 100px;
        border: 1px solid #000;
    }
    .z1{
        background-color: #f00;
        float: left;
    }
    .z2{
        background-color: #0f0;
        float: right;
    }
    .z3{
        background-color: #00f;
        float: left;
    }
</style>
<body>
    <div class="fu">
        <div class="z1">1</div>
        <div class="z2">2</div>
        <div class="z3">3</div>
    </div>

</body>
</html>